/**
 *
 */
package com.wedroid.r2d2.dao;

import com.demo2do.core.persistence.annotation.Dynamic;
import com.demo2do.core.persistence.annotation.Save;
import com.wedroid.entity.message.Message;

/**
 * @author lute
 */
@Dynamic
public interface MessageDao {

    /**
     * @param message
     */
    @Save("INSERT INTO message (msg_id, sender_name, receiver_name, group_name, message_type, message_time, content, group_id, droid_id) VALUES (:msgId, :senderName, :receiverName, :groupName, :messageType, :messageTime, :content, :group.id, :droid.id)")
    public void creatMessage(Message message);

}
